---
--类名: MoLayer.lua
--创建日期: 2015-11-9
--创建人: 陈小虎
--功能描述: 
--修改内容:
--修改日期:   
--修改人:      
--修改备注: 
--
local MoLayer = class("MoLayer",function(normal)
    if normal then
        return display.newLayer()
    else
        return display.newColorLayer(cc.c4b(0,0,0,179))
    end
end)

function MoLayer:ctor()
    self._touchMaskListener = cc.EventListenerTouchOneByOne:create()
    self._touchMaskListener:setSwallowTouches(true)
    self._touchMaskListener:registerScriptHandler(function(touch, event)
        return true
    end, cc.Handler.EVENT_TOUCH_BEGAN)

    self._touchMaskListener:registerScriptHandler(function(touch, event)
    end, cc.Handler.EVENT_TOUCH_ENDED)
    self:getEventDispatcher():addEventListenerWithSceneGraphPriority(self._touchMaskListener, self)
end

return MoLayer